find_package(LATEX)

if(NOT PDFLATEX_COMPILER)
  message("pdflatex compiler was not found. Please pass to advanced mode and provide its full path" FATAL_ERROR)
endif()

set(FIGURES_DIR ${CMAKE_CURRENT_SOURCE_DIR}/Figures)

file(GLOB_RECURSE PNG_FILES "${FIGURES_DIR}/*.png")
file(GLOB_RECURSE JPG_FILES "${FIGURES_DIR}/*.jpg")
file(GLOB_RECURSE PDF_FILES "${FIGURES_DIR}/*.pdf")

set(FIGURE_FILES ${PNG_FILES} ${JPG_FILES} ${PDF_FILES})

add_subdirectory(Tutorial)

